M=eval(input("请输入一个整数"))
N=eval(input("请输入第二个整数"))
s=c=0
for a in range (M,N+1):
      for i in range (2,a):
       if a % i==0:
        break
       else:
        print(a)
        c=c+1
        s=s+a
        print(c)

